package controller

import (
	"github.com/gin-gonic/gin"
	rt "my_gin_open/runtime"
	"my_go_open/utils"
	"strconv"
)

func TestHi(c *gin.Context) {
	rt.SaveRTLog("test", utils.TimeNowNice()) // 打日志
	WriteJsonSuccess(c, nil)
}

func TestRecovery(c *gin.Context) {
	b, _ := strconv.Atoi(c.Query("b"))
	a := 3 / b
	WriteJsonSuccess(c, a)
}
